
#pragma once
#ifndef __TREASURER_H__
#define __TREASURER_H__

#include <QObject>

class EncodedSqlDbAccess;
class QSqlTableModel;

class Treasurer : public QObject
{
    Q_OBJECT

public:

    explicit Treasurer(
        const QString &dbFilePath
    ,   QObject *parent = 0);

    ~Treasurer();

    const bool isValid() const;

    QSqlTableModel *model();

signals:

public slots:

protected:

    const bool createTables();

    void setupModel();

protected:
    EncodedSqlDbAccess *m_db;
    QSqlTableModel *m_model;
};

#endif // __TREASURER_H__
